package org.dev.vlp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.dev.vlp.entity.Topic;
import org.dev.vlp.service.TopicService;
import org.dev.vlp.mapper.TopicMapper;
import org.dev.vlp.vo.TopicVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 86184
* @description 针对表【vlp_topic(话题表)】的数据库操作Service实现
* @createDate 2023-01-10 13:11:38
*/
@Service
public class TopicServiceImpl extends ServiceImpl<TopicMapper, Topic>
    implements TopicService{

    @Autowired
    private TopicMapper topicMapper;

    @Override
    public List<TopicVo> queryTopic() {
        List<TopicVo> topicVos = topicMapper.queryTopics();
        return topicVos;
    }
}




